package com.daidai.source.mysqlsource;

import com.daidai.source.mysqlsource.domain.OneMarkOneSum;
import com.daidai.source.mysqlsource.source.MyMysqlSource;
import org.apache.flink.streaming.api.datastream.DataStreamSource;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;

public class MySqlSource {
    public static void main(String[] args) throws Exception {

        StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();

        DataStreamSource<OneMarkOneSum> oneMarkOneSumDataStreamSource = env.addSource(new MyMysqlSource());

        oneMarkOneSumDataStreamSource.print();

        env.execute();

    }
}
